package simulation;

import java.awt.Dimension;


/**
 * defines a FixedMass.
 *
 * @author Schwartz & Roy
 */

public class FixedMass extends Mass {

    /**
     * constructor calls super constructor.
     * @param x is the x-coordinate
     * @param y is the y-coordinate
     * @param mass is the mass value
     */
    public FixedMass(double x, double y, double mass) {
        super(x, y, mass);
    }

    /**
     * FixedMass is not affected by outside forces.
     * empty update method
     * @param elapsedTime is elapsed time
     * @param bounds of simulation
     */
    @Override
    public void update(double elapsedTime, Dimension bounds) {
        getVelocity().reset();
    }
}
